-
Notifications
You must be signed in to change notification settings - Fork 6.5k
[Refactor] Move transformer blocks out of attention module #12229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
| return hidden_states | ||
|
|
||
|
|
||
| class LuminaFeedForward(nn.Module): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we just go step further to move them into single model files? or just some of them, with Copied from maybe
that's what we have been doing with newer models, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah can do 👍🏽
What does this PR do?
Part of the on going attention refactor.
We've defined transformer blocks in the attention module. Think they would have a better home under
models/transformersin amodeling_common.pyfile.Fixes # (issue)
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.